import axios from "@/api";

export const addweixianAPI = (data: any) => {
  return axios({
    url: "/service/hazard",
    method: "post",
    data
  });
};

export const getweixianListAPI = (paged: any, data: any) => {
  return axios({
    url: "/service/page/hazard?paged=" + paged,
    method: "post",
    data
  });
};


export const getweAPI2 = (data2:any,data: any) => {
  return axios({
    url: "/service/page/hazard?paged=" + data2.paged+"&pageSize="+data2.pageSize,
    method: "post",
    data
  });
};

export const updateweixianAPI = (data: any) => {
  return axios({
    url: "/service/hazard",
    method: "put",
    data
  });
};

export const deleteweixianAPI = (data: any) => {
  return axios({
    url: "/service/hazard?id=" + data,
    method: "delete",

  });
};
